<div class="purplebox">
    <div class="orbox">
        <a href="javascript:history.back(-1)" class="topicon">
            <i class="iconfont icon-xiangzuo1"></i>
        </a>
        <div class="weui-flex ortop">
            {notempty name="apply"}
            <div class="weui-flex__item msg">
                <i class="iconfont icon-iconfont-jiangbei"></i>
                <div>
                    <span class="gray">排名</span>
                    <p>{$apply->getRank()}</p>
                </div>
            </div>
            {/notempty}
            <div class="weui-flex__item">
                <img src="{$user.avatar}" alt="">
            </div>
            {notempty name="apply"}
            <div class="weui-flex__item msg">
                <i class="iconfont icon-dianzan"></i>
                <div>
                    <span class="gray">总票数</span>
                    <p>{$apply.poll}</p>
                </div>
            </div>
            {/notempty}
        </div>
        <h1>{$user.nickname}</h1>
        <div class="weui-flex ortop ortop2">
            <div class="weui-flex__item msg">
                <i class="iconfont icon-qianbao1"></i>
                <div>
                    <span class="gray">红包余额</span>
                    <p>{$account->balance}</p>
                </div>
            </div>
            <div class="weui-flex__item msg">
                <i class="iconfont icon-qian"></i>
                <div>
                    <span class="gray">我的佣金</span>
                    <p>{$account->brokerage}</p>
                </div>
            </div>
        </div>
        <div class="linkgroup weui-flex">
            {notempty name="apply"}
                <a href="javascript:;" class="weui-flex__item sbtn" id="pay">红包充值</a>
                <a href="javascript:;" class="weui-flex__item obtn" id="edit">红包设置</a>
            {/notempty}
            <a href="{:url('/user/deposit', ['activity_id' => $activity.id])}" class="weui-flex__item lbtn">提现</a>
            <a href="{:url('/user/record', ['activity_id' => $activity.id])}" class="weui-flex__item gbtn">流水</a>
        </div>
    </div>
</div>
{notempty name="apply"}
<script type="text/javascript">
    var brokerage = {$brokerage|json_encode};
</script>
{/notempty}
